module AnAnCommon
  QINIU_BUCKET        = ENV['QINIU_BUCKET'].freeze
  QINIU_BUCKET_DOMAIN = ENV['QINIU_BUCKET_DOMAIN'].freeze
  QINIU_UPLOAD_CALLBACK_URL = ENV['QINIU_UPLOAD_CALLBACK_URL'].freeze
  QINIU_CALLBACK_BASE_URL   = ENV['QINIU_CALLBACK_BASE_URL'].freeze
  QINIU_OFFER_REVIEW_IMAGES_CALLBACK_URL = ENV['QINIU_OFFER_REVIEW_IMAGES_CALLBACK_URL'].freeze
  # Print out app env
  puts '*** BEG: 配置信息 ***'
  puts "七牛云空间: #{QINIU_BUCKET}"
  puts '*** END: 配置信息 ***'

  def self.resources
    @resources ||= Rails.application.config_for(:resource)
  end
end
